package ru.spbau.goncharova.chat.client.clientMessages;

import ru.spbau.goncharova.chat.client.Client;
import ru.spbau.goncharova.chat.protocol.MessageType;
import ru.spbau.goncharova.chat.protocol.ProtocolFlags;
import ru.spbau.goncharova.chat.protocol.ProtocolHeader;

public class LoginRequestMessage extends ClientMessage {

    public LoginRequestMessage(String name) {
        data = name.getBytes(Client.CLIENT_CHARSET);
        header = new ProtocolHeader(new ProtocolFlags(0), MessageType.LOGIN_REQUEST, data);
    }
}
